package com.zking;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;

@RestController
public class TestController {
    //直接注入定义的接口
    @Autowired
     IUserApi userApi;
    @GetMapping("/")
    public void test(){
        //直接调用实际调用rest接口的效果
       Flux<Customent> customent= userApi.getAllUser();
       customent.subscribe(System.out::println);
    }
}
